package edu.mis.modules.customer;

import java.util.List;
import edu.mis.model.Customer;

public class CustomerService {
	
	public boolean saveCustomer(Customer customer) {
		return customer.save();
	}
	
	public List<Customer> findAllCustomer() {
		return Customer.dao.findAll();
	}
	
	public Customer findCustomerById(int id) {
		return Customer.dao.findById(id);
	}
	
	public boolean updateCustomer(Customer customer) {
		return customer.update();
	}
	
	public boolean deleteCustomerById(int id) {
		return Customer.dao.deleteById(id);
	}
}
